const BaseHandler     = require('../base-handler');
const HTTP_VERBS      = require('../../../constants').HTTP_VERBS;

class TVAppUpdateHandler extends BaseHandler {
    get pattern() {
        return "/tvapp/update";
    }

    doGET(request, response) {

        
        var updateInfo = this.Controller.getTVAppUpdateInfo();
        response.end(JSON.stringify(updateInfo));
    }

    setup() {
        this.registerVerb(HTTP_VERBS.GET, this.doGET);
    }
}

module.exports = TVAppUpdateHandler;